import ApolloClient from 'apollo-boost';

let api = 'http://114.67.88.23:5001/graphql'; //测试服
if (process.env.UMI_ENV === 'dev') {
  api = '/graphql'; //测试服
} else if (process.env.UMI_ENV === 'prod') {
  api = 'https://95nft.cn/graphql'; //正试服
}

const client = new ApolloClient({
  uri: api,
});
export default client;
